package net.huashitong.ssydt.provider.pk.service;


import net.huashitong.ssydt.base.dao.LongMapper;
import net.huashitong.ssydt.base.service.AbstractLongService;
import net.huashitong.ssydt.pk.entity.SsPkGameRule;
import net.huashitong.ssydt.provider.pk.mapper.SsPkGameRuleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.12.11
 */
@Service
@Transactional
public class SsPkGameRuleServiceImpl extends AbstractLongService<SsPkGameRule> implements SsPkGameRuleService {

    private SsPkGameRuleMapper mapper;

    @Autowired
    public SsPkGameRuleServiceImpl(SsPkGameRuleMapper mapper) {
        this.mapper = mapper;
    }

    @Override
    protected LongMapper<SsPkGameRule> getLongMapper() {
        return this.mapper;
    }


    @Override
    public SsPkGameRule getByType(String type) {
        return this.mapper.getByType(type);
    }
}
